< previous page page_207 next page >

Page 207
9f31265bb40b592b1929e18a47ab28e5.gif
   Me.Print dtDate
   Print
   Me.Print DateAdd("d", 90, dtDate)
   Me.Print DateAdd("ww", 8, dtDate)
   Me.Print DateAdd("m", 5, dtDate)
   Me.Print DateAdd("m", -6, dtDate)
End Sub
Heres the output:
9f31265bb40b592b1929e18a47ab28e5.gif
3/24/95

6/22/95
5/19/95
8/24/95
9/24/94
The DateAdd() function uses the same string arguments as the DatePart() function as the first parameter. The 2nd parameter is how many units you wish to add to the 3rd parameter.
Conversion Functions
There are many functions used to convert from one data type to another. Figure 10.3 is the form from the example for this chapter.
8160-0207a.gif
Figure 10.3
Conversion functions.

 
< previous page page_207 next page >

If you like this book, buy it!